wayland: Do not constrain saved window size
authorOlivier Fourdan <ofourdan@redhat.com>
Wed, 21 Jun 2017 13:02:05 +0000 (15:02 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 26 Oct 2017 19:49:42 +0000 (15:49 -0400)
commit028e39d6ee53a5c09da4b4d5a9bbb1d6e768f368
tree28ac3ac10e3d92dd4910c81e55af6825740856bc
parent07beb6dba291fafa440228439e5ec827a0c754ad
wayland: Do not constrain saved window size

Under Wayland, an xdg_surface.configure with size 0x0 means it's up to
the client to set its size.

When transitioning from maximized state to un-maximized, the Wayland
compositor will send such an 0x0 configure so that the client can
restore its original size.

However, the original size was already constrained, so re-applying
size constrains can lead to a smaller size when using size increments.

Avoid this caveat by not applying size constrains when we are restoring
the original size.

https://bugzilla.gnome.org/show_bug.cgi?id=777072
gdk/wayland/gdkwindow-wayland.c